#include "reg52.h"
#include "intrins.h"
#include "delay.h"
#include "UartInit.h"
#include "DTH11.h"

sbit LIght=P3^7;
extern char datas[5];



void main()
{
	LIght=0;
	Delay1000ms();
	UartInit();
	Delay1000ms(); 
	Delay1000ms(); 
	while(1){
	Delay1000ms(); 
	read_data();
	sendString("shidu:");
	sendData(datas[0]/10+0x30);	
	sendData(datas[0]%10+0x30);
	sendString("\r\n");
		
			sendString("wendu:");
	sendData(datas[2]/10+0x30);	
	sendData(datas[2]%10+0x30);
	sendString("\r\n");

	
}
}



